const Channel_KEY = 'myLocalChannel'
const Search_KEY = 'myLocalSearch'

export const setChannel = list => {
  localStorage.setItem(Channel_KEY, JSON.stringify(list))
}

export const getChannel = () => {
  return JSON.parse(localStorage.getItem(Channel_KEY))
}

export const setHistory = list => {
  localStorage.setItem(Search_KEY, JSON.stringify(list))
}

export const getHistory = () => {
  return JSON.parse(localStorage.getItem(Search_KEY))
}
